/**
 * 
 */
package com.csc.bankingsystem.web.spring.security;

import java.util.Collection;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author angelkid
 *
 */
public class BSUsernamePasswordAuthenticationToken extends
		UsernamePasswordAuthenticationToken {
	
	private String token;
	public BSUsernamePasswordAuthenticationToken(Object principal,
			Object credentials,
			Collection<? extends GrantedAuthority> authorities,String token) {
		super(principal, credentials, authorities);
		this.token = token;
	}
	public BSUsernamePasswordAuthenticationToken(Object principal,
			Object credentials,
			Collection<? extends GrantedAuthority> authorities){
		super(principal, credentials, authorities);
	}
			
	
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
}
